﻿using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using SimpleBlog.Mvc;

namespace SimpleBlog.Areas.Admin.ViewModels
{
    public class PostEditViewModel
    {
        [Required]
        public int PostId { get; set; }

        [Required]
        [StringLength(200)]
        public string Title { get; set; }

        public string EncodedTitle { get; set; }

        [Required]
        [AllowHtml]
        [DataType(DataType.MultilineText)]
        [SummaryRequired("<hr />", "You have to put the summary separator.")]
        public string Text { get; set; }

        public string Tags { get; set; }
    }
}